package card;

import java.util.Scanner;

import PJ.Entrance;
import PJ.Player;

public class RetentionCard extends CardSystem {
	//滞留卡
	String name="RetentionCard";
	String function="该回合停留在原地，并再次触发原地事件";	
	String type="ToolCard";
	String range="自己";
	RetentionCard(){
		int point=15;
		this.point=point;
	}	
	@Override
	public int getPoint() {
		return point;
	}
	@Override
	public String getName() {
		
		return name;
	}

	@Override
	public String getFunction() {
		// TODO Auto-generated method stub
		return function;
	}

	@Override
	public String getType() {
		// TODO Auto-generated method stub
		return type;
}

	@Override
	public String getRange() {
		// TODO Auto-generated method stub
		return range;
	}
	@Override
	public void print(int location, int namei) {
		// TODO Auto-generated method stub
		Player player=new Player();
		for(int i=0;i<Entrance.players.size();i++){
			if(Entrance.players.get(i).getNamei()==namei){
				player=Entrance.players.get(i);
			}
		}
		player.setSpecial(7);
		System.out.println("卡牌使用成功");
	}
}

